package xyz.funnygo.activity.ui;

import xyz.funnygo.activity.R;
import xyz.funnygo.fragment.CartFragment;
import xyz.funnygo.fragment.CommunityViewPagerFragment;
import xyz.funnygo.fragment.HomeFragment;
import xyz.funnygo.fragment.MyInfoFragment;
import xyz.funnygo.fragment.ShopFragment;

public enum MainTab {

	HOME(0, R.string.main_tab_name_home, R.drawable.tab_sel_home,
			HomeFragment.class),

	SHOP(1, R.string.main_tab_name_shop, R.drawable.tab_sel_shop,
			ShopFragment.class),

	COMMUNITY(2, R.string.main_tab_name_community, R.drawable.tab_sel_community,
			CommunityViewPagerFragment.class),

	CART(3, R.string.main_tab_name_cart, R.drawable.tab_sel_cart,
			CartFragment.class),

	ME(4, R.string.main_tab_name_my, R.drawable.tab_sel_my,
			MyInfoFragment.class);

	private int idx;
	private int resName;
	private int resIcon;
	private Class<?> clz;

	private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
		this.idx = idx;
		this.resName = resName;
		this.resIcon = resIcon;
		this.clz = clz;
	}

	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getResName() {
		return resName;
	}

	public void setResName(int resName) {
		this.resName = resName;
	}

	public int getResIcon() {
		return resIcon;
	}

	public void setResIcon(int resIcon) {
		this.resIcon = resIcon;
	}

	public Class<?> getClz() {
		return clz;
	}

	public void setClz(Class<?> clz) {
		this.clz = clz;
	}
}
